import { gql } from 'react-apollo';

export default gql`
  mutation createTweet($text: String!) {
    createTweet(text: $text) {
      favouriteCount,
      isFavourite,
      _id,
      text,
      createdAt,
      user {
        avatar,
        username,
        firstName,
        lastName
      }
    }
  }
`;
